//
//  DHUserAccount.h
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/8.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DHUserAccount : NSObject
/*
 username 用户名
 key 登录令牌
 is_auth 是否已认证用户 (0-否, 1-是)
 is_store 是否为商家 (0-否, 1-是)
 **/
@property(nonatomic ,copy)NSString *username;
@property(nonatomic ,copy)NSString *key;
@property(nonatomic ,copy)NSString *is_auth;
@property(nonatomic ,copy)NSString *is_store;
@property(nonatomic ,copy)NSString *userid;
@property(nonatomic,assign)BOOL islogout;
@property(nonatomic ,strong)NSString *access_token;
@property(nonatomic ,strong)NSString *access_token_exptime;

@property(nonatomic ,strong)NSString *lastUserID;
- (void)saveAccount; // 保存用户模型到沙盒

- (void)removeAccount; //移除账户模型
@end
